//这里面只放路由，get与post的函数都在相关业务逻辑里
const express=require('express');
const router=express.Router();


const { login,updatePwd }=require('../controler/login');
const {getKqRecord,getHoliday}=require('../controler/zktime');
const {ledMessage}=require('../controler/LGled');
const {PushMsgToLeader}=require('../controler/PushMsgToLeader');
const {getCostRecord,getBreakRuleList,getBRList}=require('../controler/commuteBus');



router.post('/login',login)//用户登录
router.post('/updatePwd',updatePwd)//更新密码
router.post('/getKqRecord',getKqRecord)//获取考勤记录
// router.post('/getHoliday',getHoliday)//获取天聚数行“节假日判断”接口
router.post('/ledMessage',ledMessage)//led大屏
router.post('/PushMsgToLeader',PushMsgToLeader)//推送消息到领导
router.post('/getCostRecord',getCostRecord)//通勤车-统计运营趟次
router.post('/getBreakRuleList',getBreakRuleList)//通勤车-查询破坏规则的列表
router.post('/getBRList',getBRList)//通勤车-查询破坏规则的列表
module.exports=router;

